<body>
<script>
if (self==top) window.open("?op=core&fp=logout","_top");
</script>
<style>
    body {
        margin-top: 0;
        margin: 0;
    }
    body {
        font: 1em Arial, Verdana, Tahoma;
    }
    body, td, input, select, textarea {
        font-size: 9pt;
        FONT-FAMILY: Arial;
    }
    .table0 {
        border: solid 1px #b8b8b7;
    }
    .table1 {
        border: solid 1px #484747;
    }
    .tblMy3D td, {
        font-family:Gulim;
        font-size:13px;
        text-align:center;
    }
    .left_td3 {
        color: black;
        height: 25px;
        border-bottom: solid 1px #b8b8b7;
        border-right: solid 1px #b8b8b7;
    }
    .le_td0 {
        border-bottom: solid 1px #b8b8b7;
    }
    .le_td3 {
        border-left: solid 1px #b8b8b7;
    }
    .le_td3 .co {
        color: #0000FF;
    }
    .le_td {
        border-bottom: solid 1px #b8b8b7;
        PADDING-RIGHT: 0px;
        DISPLAY: inline-block;
        BACKGROUND: url({skindir}img/left_54.gif) repeat-x 0px 0px;
        PADDING-BOTTOM: 0px;
        PADDING-TOP: 0px
    }
    .le {
        font-size: 13px;
    }
    .normal {
        list-style: none;
        float: left;
        padding: 5px 2px 2px 2px;
        width: 113px!important;
        width: 118px;
        text-align : center;
        vertical-align : middle;
        cursor : pointer;
        border-bottom : solid 1px #b8b8b7;
        border-right : solid 1px #b8b8b7;
        background-color: #c4c4c2;
        border-collapse : separate;
    }
    .selected {
        list-style: none;
        float: left;
        padding: 5px 2px 2px 2px;
        width: 112px!important;
        width: 117px;
        text-align : center;
        vertical-align : middle;
        cursor : pointer;
        border-bottom : solid 0px #b8b8b7;
        border-right : solid 1px #b8b8b7;
        background-color: #0C96F3;
    }
    #divMainTab {
        border-left : solid 1px #b8b8b7;
        border-top : solid 1px #b8b8b7;
        float: left;
        margin: 0px;
        padding: 0px
    }
    .divContent {
        width: 235px;
        height: 280px;
        clear: both;
    }
    a {
        text-decoration: none;
        color: #ff0000;
        font-size: 14px;
    }
    a:hover {
        text-decoration: none;
        color: #cc0000;
        font-size: 14px;
    }
    .text02 {
        color: red
    }

    body {
        background-color: #005982 !important;
        color: #ffffff !important;
    }
    table {
        background-color: #005982 !important;
    }

</style>

<link href="/tpl/static/bootstrap/css/bootstrap.css?ver=1221" rel="stylesheet" type="text/css">
<script src="/tpl/static/js/jquery.3.1.1.min.js?ver=0227"></script>
<script src="/tpl/static/bootstrap/js/bootstrap.min.js"></script>

<div class="container-fluid">
    <div class="row">
        <div class="col-sm-12" style="padding: 15px 15px;">
            <table width="100%" border="0" cellpadding="2" cellspacing="1" class="table">
                <tr>
                    <td>{betname} 下注单</td>
                <tr>
                    <td >
                        <table cellpadding="2" cellspacing="0" width="100%" class="table table-bordered">
                        <tr>
                            <td>{{L_ACCOUNT}}</td>
                            <td align="right">{account}</td>
                        </tr>
                        <tr>
                            <td>额度：</td>
                            <td align="right">{amount}</td>
                        </tr>
                        <tr>
                            <td>已用额度：</td>
                            <td align="right">{usedamount}</td>
                        </tr>
                        <tr>
                            <td>下注期数：</td>
                            <td align="right">{round}</td>
                        </tr>
                        <tr>
                            <td>开奖日期：</td>
                            <td align="right">{open}</td>
                        </tr>
                    </table>
                        <hr>
                        <center>
                            <font color=red>{betname} {num} </font> @ <font color=red> <b id="odds">{rate}</b> </font>
                            <form name="f" id="f" action="{action}" method="post" onSubmit="return chk(this)">
                                <input type=hidden name=oldrate value="{rate}">
                                <table class="table table=bordered">
                                    {message}
                                    <tr>
                                        <td>盘类：</td>
                                        <td  align="right" style="color: #ffffff;;font-weight: bold;">{diskStr}</td>
                                    </tr>
                                    <tr>
                                        <td>下注金额：</td>
                                        <td><input style="color: black;" name="money" size=10 maxlength=8 value="{money}" onKeyPress="return KeyNumber()" onKeyUp="calculate();//nmoney.innerText=n2c(this.value);"></td>
                                    </tr>
                                    {amountnum}
                                    <tr>
                                        <td>可赢金额：
                                        <td id="payoff" style="color:red" align="right">0</td>
                                    <tr>
                                        <td>最低限额：</td>
                                        <td align="right"><b>{min}</b></td>
                                    </tr>
                                    {oneamount}
                                    <tr>
                                        <td>下注限额：</td>
                                        <td align="right"><b>{amount2_str}</b></td>
                                    </tr>
                                    <tr>
                                        <td colspan=2 align=center><input type=button class="btn btn-default" name=cancel value="取消" onClick="location.replace('op.php?op=member&fp=account')">
                                            <input type=submit name=submit  class="btn btn-success" value="确定">
                                    </tr>
                                </table>
                            </form>
                            </p>
                        </center>
                <tr>
                    <td align=center class=td0> {{L_REFRESHSEC}} <span id=pclock> </span>
            </table>
        </div>
    </div>
</div>
<script>
function chk(f)
{
    f.submit.disabled = true;
    f.cancel.disabled = true;
	if (f.money.value=="") {
		alert("请输入下注金额！");
		f.money.focus();
        f.submit.disabled = false;
        f.cancel.disabled = false;
		return false;
	}
	var m = parseInt(f.money.value);
	if (m < {min}) {
		alert("下注金额不能小於最低限额！");
		f.money.focus();
        f.submit.disabled = false;
        f.cancel.disabled = false;
		return false;
	}
    if (m > {amount1}) {
    	alert("下注金额不能超过单注限额！");
    	f.money.focus();
        f.submit.disabled = false;
        f.cancel.disabled = false;
    	return false;
    }
	if ((m + {usedamount}) > {amount}) {
		alert("下注金额不能超过信用额度！");
		f.money.focus();
        f.submit.disabled = false;
        f.cancel.disabled = false;
		return false;
	}
	if (!confirm("是否确定下注？")) {
		f.money.focus();
	    f.submit.disabled = false;
        f.cancel.disabled = false;
		return false;
	}
}
function calculate()
{
	if (f.money.value=="") {
		f.money.focus();
	} else {
		var money = parseFloat(f.money.value);
		var odds = parseFloat(document.all.odds.innerHTML);
		var payoff = Math.round(money*(odds-1));
		document.all.payoff.innerHTML = payoff;
	}
}
function canceldeliver()
{
	location.replace("?op=member&fp=account");
}
var RSecond=35;
RClockRate();
f.money.focus();
</script>